package tech.xiaozai;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-09-15 15:47
 */

// 扁平对象,  query串传参适合扁平对象,也适合零散参数
class User1{
    private String username;
    private String password;
    private Integer id;
    private String gender;
    private String email;
}

class UserInfo{
    private String gender;
    private String email;
}

// 多层对象,  只有json格式适合多层对象传参
class User2{
    private String id;
    private String username;
    private String password;
    private UserInfo userInfo;
}
